<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <canvas id="c1" width="600" height="600"></canvas>
  <script>
    const c1 = document.getElementById('c1')
    // console.log(c1.getContext)
    const cvsCtx = c1.getContext('2d')
    
    cvsCtx.beginPath();
    // 绘制脸型
    cvsCtx.arc(75,75,50,0,Math.PI * 2);
    cvsCtx.moveTo(110,75)

    // 绘制嘴巴
    cvsCtx.arc(75,75,35,0,Math.PI)
    cvsCtx.moveTo(65,65)

    // 绘制眼睛
    cvsCtx.arc(60,65,5,0,Math.PI * 2)
    cvsCtx.moveTo(95,65)

    cvsCtx.arc(90,65,5,0,Math.PI * 2)
    
    cvsCtx.stroke()
    cvsCtx.closePath();
  </script>
</body>
</html>